How to create a new period
The Periodic Tasks facility is designed to be extensible: new periods can be added as required. In this section we will add a new period that generates statistical information on a quarterly basis. The steps required are:
- Determine a name for the period, e.g. quarterly.
- Create the directory in which the quarterly tasks will be stored, e.g. local/etc/periodic/quarterly.
- Add an entry to cron so that emuperiodic is invoked at a suitable time. The entry for quarterly will look like:
0 7 1 1,4,7,11 * /home/emu/client/bin/emurun emuperiodic quarterly 2>&1 | /home/emu/client/bin/emurun emulogger -t "KE EMu Periodic Tasks Report" periodic
- Add the quarterly tasks to local/etc/periodic/quarterly.
Statistics generate on a quarterly basis. Note that the quarterly tasks are run at 7:00 am the day after the quarter ends.